
<div id="content_history">
<table class="table table-bordered table-hover">
	<thead>
		<tr>
			<th width="5%">#</th>
			<th width="5%">Kode</th>
			<th width="30%">Isi Ringkas, File</th>
			<th width="25%">Tujuan Surat</th>
			<th width="20%">Nomor, Tgl. Surat</th>
		</tr>
	</thead>

	<tbody>
		<?php
			$no = 1;
			foreach ($data->result() as $b) {
		?>
		<tr>
			<td><?php echo $no;  ?></td>
			<?php

					echo '<td>' . $b->kode . '</td>';

			?>

			<td><?=$b->isi_ringkas?></td>
			<td><?=$b->tujuan?></td>
			<?php
				if (isset($b->tgl_surat)){
					$tgl_surat = tgl_jam_sql($b->tgl_surat);
				}else{
					$tgl_surat = '';
				}
			?>
			<td><?=$b->no_surat."<br><i></i>"?></td>

		</tr>
		<?php
			$no++;
			}

		?>
	</tbody>
</table>
</div>